﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMaster.master" AutoEventWireup="true"
    CodeFile="EditGiveCoup.aspx.cs" Inherits="PromotionInfo_EditGiveCoup" %>

<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2.Linq, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Data.Linq" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../Css/table.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="MainContent">
    <dx:ASPxRoundPanel ID="MainRoundPanel" runat="server" Width="100%" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
        CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
        GroupBoxCaptionOffsetY="-19px" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
        <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
        <HeaderStyle>
            <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
        </HeaderStyle>
        <PanelCollection>
            <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
            </dx:PanelContent>
        </PanelCollection>
    </dx:ASPxRoundPanel>
    <h1 class="DemoTitle">
        查看赠卷信息
    </h1>
    <div id="DemoArea">
        <a href="EditPromotion.aspx">
            <h3>
                返回促销信息管理页</h3>
        </a>
        <dx:ASPxGridView ID="gv" runat="server" Width="100%" AutoGenerateColumns="False"
            DataSourceID="LSMDSourceMainProPromotion" KeyFieldName="zqbh" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
            CssPostfix="Office2010Blue">
            <Columns>
                <dx:GridViewDataTextColumn FieldName="zqbh" ReadOnly="True" VisibleIndex="0" Caption="赠卷编号"
                    Name="t_zqbh" Visible="False">
                    <EditCellStyle HorizontalAlign="Left">
                    </EditCellStyle>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="赠卷金额" FieldName="fsje" Name="t_fsje" VisibleIndex="1">
                    <PropertiesTextEdit DisplayFormatString="c" MaxLength="10">
                        <MaskSettings Mask="&lt;0..9999999999g&gt;.&lt;00..99&gt;" IncludeLiterals="DecimalSymbol">
                        </MaskSettings>
                    </PropertiesTextEdit>
                    <EditCellStyle HorizontalAlign="Left">
                    </EditCellStyle>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataComboBoxColumn Caption="是否有效" FieldName="flag" Name="t_flag" ShowInCustomizationForm="True"
                    VisibleIndex="2">
                    <PropertiesComboBox ValueType="System.String" Spacing="0">
                        <Items>
                            <dx:ListEditItem ImageUrl="~/Images/icon/A.png" Text="是" Value="Y" />
                            <dx:ListEditItem ImageUrl="~/Images/icon/Z.png" Text="否" Value="N" />
                        </Items>
                    </PropertiesComboBox>
                    <EditCellStyle HorizontalAlign="Left">
                    </EditCellStyle>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataComboBoxColumn>
                <dx:GridViewDataDateColumn Caption="截至日期" FieldName="jzrq" Name="t_jzrq" VisibleIndex="3"
                    Visible="False">
                    <PropertiesDateEdit DisplayFormatString="" Spacing="0">
                    </PropertiesDateEdit>
                    <EditCellStyle HorizontalAlign="Left">
                    </EditCellStyle>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataDateColumn>
                <dx:GridViewDataTextColumn FieldName="cxbh" VisibleIndex="4" Caption="促销编号" Name="t_cxbh"
                    Visible="False">
                    <EditCellStyle HorizontalAlign="Left">
                    </EditCellStyle>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="zdh1" VisibleIndex="5" Caption="终端号" Name="t_zdh1">
                    <EditCellStyle HorizontalAlign="Left">
                    </EditCellStyle>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="jyh1" VisibleIndex="6" Caption="交易号" Name="t_jyh1">
                    <EditCellStyle HorizontalAlign="Left">
                    </EditCellStyle>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataDateColumn Caption="生成日期" FieldName="fsrq1" Name="t_fsrq1" VisibleIndex="7"
                    Visible="False">
                    <PropertiesDateEdit DisplayFormatString="" Spacing="0">
                    </PropertiesDateEdit>
                    <EditCellStyle HorizontalAlign="Left">
                    </EditCellStyle>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataDateColumn>
                <dx:GridViewDataTextColumn FieldName="zdh2" VisibleIndex="8" Caption="使用终端号" Name="t_zdh2">
                    <EditCellStyle HorizontalAlign="Left">
                    </EditCellStyle>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="jyh2" VisibleIndex="9" Caption="使用交易号" Name="t_jyh2">
                    <EditCellStyle HorizontalAlign="Left">
                    </EditCellStyle>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataDateColumn Caption="使用日期" FieldName="fsrq2" Name="t_fsrq2" VisibleIndex="10"
                    Visible="False">
                    <PropertiesDateEdit DisplayFormatString="" Spacing="0">
                    </PropertiesDateEdit>
                    <EditCellStyle HorizontalAlign="Left">
                    </EditCellStyle>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataDateColumn>
                <dx:GridViewDataMemoColumn Caption="备注" FieldName="bz" Name="t_bz" Visible="False"
                    VisibleIndex="11">
                    <EditFormSettings ColumnSpan="2" Visible="True" />
                    <EditCellStyle HorizontalAlign="Left">
                    </EditCellStyle>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataMemoColumn>
            </Columns>
            <SettingsBehavior AllowDragDrop="False" />
            <SettingsEditing Mode="PopupEditForm" PopupEditFormModal="true" PopupEditFormHorizontalAlign="WindowCenter"
                PopupEditFormVerticalAlign="WindowCenter" PopupEditFormWidth="600px" />
            <Settings ShowFilterRow="True" />
            <SettingsText PopupEditFormCaption="编辑" EmptyDataRow="没有记录" />
            <SettingsDetail AllowOnlyOneMasterRowExpanded="True" ShowDetailRow="True" />
            <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanelOnStatusBar>
                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanel>
            </Images>
            <ImagesFilterControl>
                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanel>
            </ImagesFilterControl>
            <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                </Header>
                <LoadingPanel ImageSpacing="5px">
                </LoadingPanel>
            </Styles>
            <StylesPager>
                <PageNumber ForeColor="#3E4846">
                </PageNumber>
                <Summary ForeColor="#1E395B">
                </Summary>
            </StylesPager>
            <StylesEditors ButtonEditCellSpacing="0">
                <ProgressBar Height="21px">
                </ProgressBar>
            </StylesEditors>
            <Templates>
                <DetailRow>
                    <table style="font-size: 10pt" width="600px">
                        <tr>
                            <td class="t1">
                                截至日期:
                            </td>
                            <td class="t2">
                                <dx:ASPxLabel Width="200px" Font-Size="10pt" ID="View_frdb" Wrap="true" runat="server"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" Text='<%# Eval("jzrq") %>' CssPostfix="DevEx">
                                </dx:ASPxLabel>
                            </td>
                        </tr>
                        <tr>
                            <td class="t1">
                                生成日期:
                            </td>
                            <td class="t2">
                                <dx:ASPxLabel Width="200px" Font-Size="10pt" ID="ASPxLabel2" Wrap="true" runat="server"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" Text='<%# Eval("fsrq1") %>' CssPostfix="DevEx">
                                </dx:ASPxLabel>
                            </td>
                            <td  class="t1">
                                使用日期:
                            </td>
                            <td  class="t2">
                                <dx:ASPxLabel Width="200px" Font-Size="10pt" ID="ASPxLabel3" Wrap="true" runat="server"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" Text='<%# Eval("fsrq2") %>' CssPostfix="DevEx">
                                </dx:ASPxLabel>
                            </td>
                        </tr>
                        <tr style="height:30px;">
                            <td  class="t1">
                                备注:
                            </td>
                            <td  class="t2" colspan="3" style="text-indent:2em;">
                                <dx:ASPxLabel Width="200px" Font-Size="10pt" ID="View_qyxz" Wrap="true" runat="server"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" Text='<%# Eval("bz") %>' CssPostfix="DevEx">
                                </dx:ASPxLabel>
                            </td>
                        </tr>
                    </table>
                </DetailRow>
            </Templates>
        </dx:ASPxGridView>
        <dx:LinqServerModeDataSource ID="LSMDSourceMainProPromotion" runat="server" ContextTypeName="DAL.DataClassesDataContext"
            EnableDelete="True" EnableInsert="True" EnableUpdate="True" TableName="css_sp_coup"
            OnSelecting="LSMDSourceMainProPromotion_Selecting" />
    </div>
</asp:Content>
